import Layout from "@/layout/Layout.vue";

const main = [
    {
        path: '/',
        redirect: '/home',
    },
    {
        path: '/login',
        meta: {title: '登录'},
        hidden: true,
        component: () => import('@/views/login/Login.vue'),
    },
    {
        path: '/',
        component: Layout,
        meta: {title: '首页'},
        children: [
            {
                path: '/home',
                meta: {title: '数据分析'},
                component: () => import('@/views/home/Home.vue')
            }
        ]
    },
    {
        path: '/',
        component: Layout,
        children: [
            {
                path: '/about',
                meta: {title: '关于'},
                component: () => import('@/views/about/About.vue')
            }
        ]
    },
]

export default main